package com.zllkj.mm.adapter

import android.util.Log
import androidx.appcompat.widget.AppCompatImageView
import androidx.appcompat.widget.AppCompatTextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.zllkj.mm.R
import com.zllkj.mm.model.entity.DynamicBlockItemVoRecord
import com.zllkj.mm.module.goods.vm.ItemCollectionsVM
import com.zllkj.mm.util.common.PictureLoadUtil

class BlockListAdapter(layoutResId: Int, data: List<DynamicBlockItemVoRecord?>?) :
        BaseQuickAdapter<DynamicBlockItemVoRecord, BaseViewHolder>(layoutResId, data) {
    override fun convert(baseViewHolder: BaseViewHolder, vm: DynamicBlockItemVoRecord) {
        baseViewHolder.getView<AppCompatTextView>(R.id.tv_blocko_list_name).text = vm.nikeName
        PictureLoadUtil.loadPic(baseViewHolder.getView<AppCompatImageView>(R.id.iv_block_logo),vm.userLogo)
        baseViewHolder.addOnClickListener(R.id.btn_remove_blocker)
    }
}